load("@rules_java//java:java_binary.bzl", "java_binary")
load("@rules_java//java:java_import.bzl", "java_import")

java_import(
    name = "javacc_jar",
    jars = ["javacc.jar"],
)

java_binary(
    name = "javacc_stage1",
    main_class = "javacc",
    visibility = ["//:__subpackages__"],
    runtime_deps = [":javacc_jar"],
)

java_binary(
    name = "jjtree_stage1",
    main_class = "jjtree",
    visibility = ["//:__subpackages__"],
    runtime_deps = [":javacc_jar"],
)
